IOMMU: add domain crash logic
authorQuan Xu <quan.xu@intel.com>
Fri, 8 Jul 2016 06:45:13 +0000 (00:45 -0600)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 15 Jul 2016 09:50:42 +0000 (10:50 +0100)
commitecb38915edbb394bf4d1c46778b844a30baec8c1
tree4b15b8de4d80fdd73e1993c7c05d44d61005aa86
parent58869ff6adb483e34091ce052b0ce95f45ffe13f
IOMMU: add domain crash logic

Add domain crash logic to the generic IOMMU layer to benefit
all platforms.

No spamming of the log can occur. For DomU, we avoid logging any
message for already dying domains. For Dom0, that'll still be more
verbose than we'd really like, but it at least wouldn't outright
flood the console.

Signed-off-by: Quan Xu <quan.xu@intel.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Quan Xu <quan.xu@intel.com>
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/vtd/iommu.c